package com.atguigu.zkb.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 缓存注解
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {
    String cacheKey() default "";

    String distroLockKey() default "";

    String distroBloomKey() default "";

    boolean distroBloomSwitch() default true;

    boolean distroLockSwitch()  default true;
}
